import {ProjectList, LabelList,proManagementList, Query} from "@/utils/interface"
import {proManagement, Labellist,ProjectLists} from '@/services'
import {makeAutoObservable} from "mobx"


class InterviewList{
    constructor(){
        makeAutoObservable(this)
    }
    // planlistItem:inteplanListItem[] = []
    getproManagement:proManagementList[]=[]
    getLabellist:LabelList[]=[]
    getProjectList:ProjectList[]=[]
    // interviewRecord:interviewList = {} as interviewList
    async proManagement(){
        let result = await proManagement();
        // console.log(result);
        
        if(result.data){
            this.getproManagement = result.data
        }
    }    
    async LabelList(){
        let results = await Labellist();
        // console.log(results);
        
        if(results.data){
            this.getLabellist = results.data
        }
    }  
    async ProjectList(params:Query){
        let resultss = await ProjectLists(params);
        // console.log()
        if(resultss.rows){
            this.getProjectList = resultss.rows
            // console.log(this.getProjectList)
        }
    }  

}

export default new InterviewList
